<?php
$Function = Dracosys::getSessionValue(SESSION_INTERFACE, 'Function');
?>
<h2>Visualizar Fun&ccedil;&atilde;o</h2>
<section id="FuntionView">
    <section id="FuntionView_Individual">
        <div class="title">Informa&ccedil;&otilde;es da Fun&ccedil;&atilde;o</div>
        <div class="out_txt big">Nome</div>
        <div class="inp_txt big"><?= $Function->getStNome(); ?></div>
        <div class="out_txt big">Perfil</div>
        <div class="inp_txt big">
            <?php 
            if($Function->hasProfiles()):
                foreach ($Function->getTPerfil() as $Perfis): 
                    echo $Perfis->getStPerfil() . '<br />';
                endforeach;
            else:
                echo 'Não possui perfil definido';
            endif; 
            ?>
        </div>
    </section>
</section>
